package view;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;

public class PanelPrincipal extends JPanel{
	
	private JButton buttonCliente = null;
	private JButton buttonBanco = null;
	private JButton buttonOper = null;
	private JButton buttonConfig = null;
	
	public PanelPrincipal(){
		super();
		initialize();
	}
	
	public JPanel getJPanelPrincipal() {
		return this;
	}
	
	private void initialize() {
		GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
		gridBagConstraints3.gridx = 3;
		gridBagConstraints3.gridheight = 0;
		gridBagConstraints3.gridwidth = 0;
		gridBagConstraints3.weightx = 0.0D;
		gridBagConstraints3.weighty = 2.0D;
		gridBagConstraints3.ipadx = 40;
		gridBagConstraints3.ipady = 40;
		gridBagConstraints3.insets = new Insets(5, 5, 5, 5);
		gridBagConstraints3.gridy = 0;
		GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
		gridBagConstraints2.gridx = 2;
		gridBagConstraints2.ipadx = 40;
		gridBagConstraints2.ipady = 40;
		gridBagConstraints2.insets = new Insets(5, 5, 5, 5);
		gridBagConstraints2.gridy = 0;
		GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
		gridBagConstraints1.gridx = 1;
		gridBagConstraints1.insets = new Insets(5, 5, 5, 5);
		gridBagConstraints1.ipadx = 40;
		gridBagConstraints1.ipady = 40;
		gridBagConstraints1.gridy = 0;
		GridBagConstraints gridBagConstraints = new GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.insets = new Insets(5, 5, 5, 5);
		gridBagConstraints.ipadx = 40;
		gridBagConstraints.ipady = 40;
		gridBagConstraints.gridy = 0;
		setLayout(new GridBagLayout());
		setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
		add(getJButtonCliente(), gridBagConstraints);
		add(getJButtonBanco(), gridBagConstraints1);
		add(getJButtonOperac(), gridBagConstraints2);
		add(getJButtonConfig(), gridBagConstraints3);		
		
	}
	
	public JButton getJButtonCliente() {
		if (buttonCliente == null) {
			buttonCliente = new JButton();
			buttonCliente.setText("Cliente");
			buttonCliente.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
				}
			});
		}
		return buttonCliente;
	}

	/**
	 * This method initializes jButton1	
	 * 	
	 * @return javax.swing.JButton	
	 */
	public JButton getJButtonBanco() {
		if (buttonBanco == null) {
			buttonBanco = new JButton();
			buttonBanco.setText("Banco");
		}
		return buttonBanco;
	}

	/**
	 * This method initializes jButton2	
	 * 	
	 * @return javax.swing.JButton	
	 */
	public JButton getJButtonOperac() {
		if (buttonOper == null) {
			buttonOper = new JButton();
			buttonOper.setText("Operac");
		}
		return buttonOper;
	}

	/**
	 * This method initializes jButton3	
	 * 	
	 * @return javax.swing.JButton	
	 */
	public JButton getJButtonConfig() {
		if (buttonConfig == null) {
			buttonConfig = new JButton();
			buttonConfig.setText("Config");
		}
		return buttonConfig;
	}

}
